const connect = require("../../sql")
async function queryall(req,res){
    const result = await connect("select * from student",[])
    if(result.length){
        res.send({code:200,msg:result})
    }else{
        res.send({code:304,msg:"获取班级信息失败"})
    }
}



module.exports = {
    queryall
}